<?php
// Check for logged in status
//echo $_SESSION['userdata']['logged_in'];
//echo isset($_SESSION['userdata']['logged_in']);
if(@$_SESSION['userdata']['logged_in'] != "TRUE"){
	unset($_SESSION['userdata']);
	session_destroy();
	header("Location:login.php?err=login");
}